home *** CD-ROM | disk | FTP | other *** search
- Short: Allocates 16 bytes for memory-protection
- Author: p-k@htp-tel.de (Peter Keunecke)
- Uploader: p-k@htp-tel.de (Peter Keunecke)
- Version: 1.3
- Type: util/boot
-
- Changes since version 1.1:
-
- Bugfix: The signature longword was stored on an odd address
- in 1.2: whenever an odd number of bytes was allocated ;-(
-
- In 1.3: Now, adds 16 bytes with 2 signatures for safety.
- Bypass for zero and negative byte demands and for
- largest-block orders, to keep memory-tests, avail
- and memory-clearing programs running.
-
-
- Description:
-
- MemTrailer is a shell-command for the startup-sequence that
- will patch the AllocMem() and the FreeMem() exec-functions.
-
- Because some programs make illegal accesses past the end of
- their own memory-allocations or try to use FreeMem() with an
- unaligned argument pointing a few Bytes out of bounds, you
- may sometimes get a delayed and unexpected Guru-Meditation.
-
- With the debug-tool MungWall you can check your system for
- this type of troublemakers. MungMem is a tool, which tries
- to solve this problem in nearly all cases, but is relatively
- complex and therefore it needs quite an amount of CPU-time.
-
- In order to use less CPU-time, I made MemTrailer as simple
- as possible with the intention to fix only the most commonly
- situations where illegal memory-accesses could happen.
-
- MemTrailer patches AllocMem() to get additional 16 Bytes for
- each allocation and sets up 2 signatures pointing to the top.
- These 16 Bytes are sacrificed to protect other programs from
- memory-corruption and the system getting Guru-Meditations.
-
- Whenever FreeMem() cannot find a valid signature in the last
- longwords, the 16 additional Bytes are left behind in memory.
-
- It seems that the Workbench does a lot of small allocations
- and therefore runs faster with the original AllocMem(). The
- WB behaves as if it preserves the former function vectors?!
-
-
- Installation and usage:
-
- Put the command MemTrailer into C: or whereever you like.
- Add a line to your startup-sequence close to the bottom or
- at least after LoadWB and call MemTrailer just without Run.
-
- Make some tests, starting MemTrailer from the Shell first,
- before you change your startup-sequence and booting fails!!
-
-
- Startup-sequence:
- ...
- LoadWB
- ...
- MemTrailer
- EndCLI
-
-
-
- It would be nice, if you could give me some feedback whether
- MemTrailer is working on your system and on which hardware
- and software it runs or not, because I'm only testing it on
- WinUAE and OS 3.1.
-
-
- Distribution:
-
- This program is Freeware and its sourcecode is included.
- I don't give any warranties. You are responsible for using
- this program and any damage it could cause to your system!
-
-
- Peter Keunecke
-